//
//  IGSheetButton.m
//  jingdongfang
//
//  Created by RKL on 2018/5/24.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGSheetButton.h"

@implementation IGSheetButton

- (void)initWithBlock:(ClickActionBlock)clickActionBlock for:(UIControlEvents)event
{
    [self addTarget:self action:@selector(goAction:) forControlEvents:event];
    
    self.caBlock = clickActionBlock;
}

- (void)goAction:(UIButton *)btn
{
    self.caBlock(btn);
}

@end
